<?php // content="text/plain; charset=utf-8"
session_start();
require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph_led.php');

$codspam=null;
$numeros= '0123456789';
for($i=1;$i<=5;$i++){
	$posicao= mt_rand(0,9);
	$codspam .= substr($numeros,$posicao,1);
}
$_SESSION["codigo"]=$codspam;

// By default each "LED" circle has a radius of 3 pixels
$led = new DigitalLED74();
$led->StrokeNumber($codspam,LEDC_INVERTGRAY); 



?>